<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>持久化存储</title>
	</head>
	<body>
		<span id="span1"></span>
		<script type="text/javascript">
			var i = 0;
			if(localStorage.num){
				i = localStorage.num;
				i++;
			}
			
			localStorage.num = i;

			span1.innerHTML = i;
			

			
			
			
			
			
		</script>
	</body>
</html>
